/*
 * @Author: zhaiyujia
 * @Date: 2022-11-16 00:43:31
 * @LastEditors: zhaiyujia
 * @LastEditTime: 2022-11-16 02:53:13
 * @Description: file content
 */

#if 1 // ================================= Arduino
#include "Arduino.h"
#define LED D55
void setup()
{
    pinMode(LED, OUTPUT);
}
void loop()
{
    digitalWrite(LED, !digitalRead(LED));
    delay(500);
}
#else // ================================= EcbmCore
#include "ecbm_core.h"
void main()
{
    system_init();
    gpio_mode(D55, GPIO_OUT);
    while (1)
    {
        gpio_out(D55, !gpio_in(D55));
        delay_ms(500);
    }
}
#endif